package com.amigo.online.provider.manager.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.provider.manager.model.entity.ApplyConfirmationTbl;

@Mapper
@Component
public interface ApplyConfirmationMapper extends MyMapper<ApplyConfirmationTbl> {
    /**
     * 查询套餐的广告播放量,地区剩余播放量...
     *
     * @param applyTbl
     * @return
     */
    List<ApplyConfirmationTbl> findApplyNumber(ApplyConfirmationTbl applyTbl);

    /**
     * 修改冻结数量
     *
     * @param applyTbl
     * @return
     */
    int updateApplyNumber(List<ApplyConfirmationTbl> applyTbl);

    /**
     * 添加到库存表
     *
     * @param applyTbl
     * @return
     */
    int saveAdvStock(List<ApplyConfirmationTbl> applyTbl);

}
